{extend name="../../admin/view/main"}


{block name="content"}
<div class="layui-tab layui-tab-card">
    <div class="layui-tab-content">
        {include file='activity/activity/ticket_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='nowrap'>ID</th>
                <th class='nowrap'>活动名称</th>
                <th class='nowrap'>票券名称</th>
                <th class='nowrap'>数量</th>
                <th class='nowrap'>价格</th>
                <th class='nowrap'>剩余</th>
                <th class='nowrap'>销售日期</th>
                <th class='nowrap'>票券描述</th>
                <th class='nowrap'>是否在售</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td>{$vo.id}</td>
                <td>
                    
                    <span>{$vo.activityModel.name}</span>
                </td>
                <td class="nowrap">
                    <span>{$vo.name}</span>
                </td>
                <td class="nowrap">{$vo.quantity|default='0'}</td>
                <td class="nowrap">{$vo.price|default='0'}</td>
                <td class="nowrap">{$vo.rest_quantity|default='0'}</td>
         
                <td class="nowrap">
                    {$vo.ticketModel.sale_begin|default='-'} 
                    <br />
                     {$vo.ticketModel.sale_end|default='-'}
                </td>
                <td class="nowrap"><p style="width: 200px;overflow: hidden;text-overflow: ellipsis;cursor:pointer;" title="{$vo.ticketModel.desc|default=''}">{$vo.ticketModel.desc|default='-'}</p></td>
                <td class="nowrap">{$vo.is_open == 1 ?'是':'否'}</td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}
